package com.reggie.dto;

import com.reggie.pojo.Dish;
import com.reggie.pojo.DishFlavor;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
public class DishDto extends Dish {
//0: {name: "甜味", value: "["无糖","少糖","半糖","多糖","全糖"]", showOption: false}
//1: {name: "辣度", value: "["不辣","微辣","中辣","重辣"]", showOption: false}
//2: {name: "忌口", value: "["不要葱","不要蒜","不要香菜","不要辣"]", showOption: false}
    //前端传输的口味数据自动封装到DishFlavor中对应的属性中，而且可能有多个口味集合，所以用List集合封装
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;

}
